var path = require('path');
var fs = require('fs');
var rimraf = require('rimraf');
var buildDir = path.resolve(__dirname, '../dist/js');
rimraf(path.resolve(__dirname, '../dist/js'), fs, function cb() {
    console.log('js目录已清空');
});
rimraf(path.resolve(__dirname, '../dist/css'), fs, function cb() {
    console.log('css目录已清空');
});
rimraf(path.resolve(__dirname, '../dist/img'), fs, function cb() {
    console.log('img目录已清空');
});
rimraf(path.resolve(__dirname, '../dist/font'), fs, function cb() {
    console.log('font目录已清空');
});

